<template>
<!--公司资料页面 => 公司详情资料组件-->
<div class="company_info_detail">
	<div class="title">{{ $lang('COMPANY_INFO_DETAIL') }}</div>
	<div class="info clearfix">
		<img :src="imgUrl + companyMsg.logo" alt=""/>
		<ul class="clearfix">
			<li><span>{{ $lang('COMPANY_NAME') }} : </span><span>{{$i18n.locale == 'zh'?companyMsg.zhName || $lang('No_data'):companyMsg.enName || $lang('No_data')}}</span></li>
			<li><span>{{ $lang('COMPANY_ADDRESS') }}</span><span>{{$i18n.locale == 'zh'?companyMsg.zhAddress || $lang('No_data'):companyMsg.enAddress || $lang('No_data')}}</span></li>
			<li><span>{{ $lang('COMPANY_PROVINCE') }} : </span><span>{{$i18n.locale == 'zh'?companyMsg.countryZhName || $lang('No_data'):companyMsg.countryEnName || $lang('No_data')}} {{companyMsg.province}} {{companyMsg.city}}</span></li>
			<li><span>{{ $lang('REG_CAPITAL') }} : </span><span>{{companyMsg.registeredCapital || $lang('No_data')}}{{ $lang('Thousand')}}</span></li>
			<li><span>{{ $lang('COMPANY_WEBSITE') }} : </span><span><a :href="companyMsg.website" target="_blank"  class="isCompany">{{companyMsg.website || $lang('No_data')}}</a></span></li>
			<li><span>{{ $lang('PHONE') }} : </span><span>{{companyMsg.phone || $lang('No_data')}}</span></li>
			<li><span>{{ $lang('FAX') }} : </span><span>{{companyMsg.fax || $lang('No_data')}}</span></li>
			<li><span>{{ $lang('POST_CODE') }} : </span><span>{{companyMsg.postcode || $lang('No_data')}}</span></li>
			<li><span>{{ $lang('ISSUE_TOKEN') }} : </span><span>{{companyMsg.publishToken || $lang('No_data')}}</span></li>
			<li><span>{{ $lang('ISSUE_TIME') }} : </span><span>{{companyMsg.publishDate || $lang('No_data')}}</span></li>
			<li><span>{{ $lang('ISSUE_TOTAL') }} : </span><span>{{companyMsg.publishTokenAmount || $lang('No_data')}}</span></li>
            <li><span>{{ $lang('BELONG_INDUSTRY') }} : </span><span>{{$i18n.locale == 'zh'?companyMsg.industryZhName || $lang('No_data'):companyMsg.industryEnName || $lang('No_data')}}</span></li>
            <li><span>{{ $lang('MAIN_BUSINESS') }} : </span><span>{{$i18n.locale == 'zh'?companyMsg.zhMainBusiness || $lang('No_data'):companyMsg.enMainBusiness || $lang('No_data')}}</span></li>
            <li><span>{{ $lang('PRODUCT_NAME') }} : </span><span>{{$i18n.locale == 'zh'?companyMsg.zhProducts || $lang('No_data'):companyMsg.enProducts || $lang('No_data')}}</span></li>
		</ul>
	</div>
	<!-- <ul class="clearfix">
		<li><span>{{ $lang('BELONG_INDUSTRY') }} : </span><span>{{$i18n.locale == 'zh'?companyMsg.industryZhName || $lang('No_data'):companyMsg.industryEnName || $lang('No_data')}}</span></li>
		<li><span>{{ $lang('MAIN_BUSINESS') }} : </span><span>{{$i18n.locale == 'zh'?companyMsg.zhMainBusiness || $lang('No_data'):companyMsg.enMainBusiness || $lang('No_data')}}</span></li>
		<li><span>{{ $lang('PRODUCT_NAME') }} : </span><span>{{$i18n.locale == 'zh'?companyMsg.zhProducts || $lang('No_data'):companyMsg.enProducts || $lang('No_data')}}</span></li>
	</ul> -->
	<div class="title">{{ $lang('COMPANY_BRIEF_INTRODUCE') }}</div>
	<p>{{$i18n.locale == 'zh'?companyMsg.zhIntro || $lang('No_data'):companyMsg.enIntro || $lang('No_data')}}</p>
</div>
</template>

<script>
import { gets,imgUrl } from "@/api/api.js";
export default {
  data() {
    return {
      companyMsg: [],
      imgUrl:'https://equfile.s3.us-east-2.amazonaws.com/'
    };
  },
  methods: {
    async getCompany() {
        let that = this
        try {
            let res = await gets.searchCompanyList("/company/find-basic-info.json", {
                id: that.$store.state.common.companyId
            });
            that.companyMsg = res.data
        } catch (e) {
            console.log(e)
            throw e;
        }
    }
  },
  created() {
      this.getCompany()
  },
};
</script>

<style>
.isCompany{
    color: #fff;
}
#company_info .container > .company_info_detail{
    border-top: 0 !important;
}
</style>